package com.demo3.controller;

import com.demo3.service.ProviderService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
public class Provider3Controller {

    @Resource
    private ProviderService providerService;

    /**
     * 扣减库存
     */
    @RequestMapping("/test/provider/find")
    public String decrease() {
        System.out.println("3被请求了");

        return providerService.decrease();
    }


}
